package com.example.primeiraaplicacao2;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

 

public class Tela1 extends Activity implements OnClickListener {
	
	Button btChamatela;
	public void onCreate(Bundle icicle){
		super.onCreate(icicle);
		setContentView(R.layout.tela1);
		
	
		btChamatela = (Button) findViewById(R.tela1.btChamtela);
		
		
	}


	@Override
	public void onClick (View v){
		// TODO Auto=generated method stub
		if (v == btChamatela){
			 Intent in = new Intent(this,Tela2.class);
			 startActivity(in);
			
	}
	}
}